package com.xiaou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xiaou.mapper.ItemsMapper;
import com.xiaou.pojo.Items;
import com.xiaou.service.ItemsService;
@Service
@Transactional
public class ItemServiceImpl implements ItemsService {
	@Autowired
	private ItemsMapper itemsMapper;
	@Override
	public List<Items> queryItemList() {
		List<Items> list = itemsMapper.selectAllItems();
		return list;
	}
	@Override
	public Items selectItemById(Integer id) {
		Items item = itemsMapper.selectItemById(id);
		return item;
	}
	@Override
	public void updateItem(Items item) {
		itemsMapper.updateItem(item);
	}

}
